import request from '@/utils/request'

// 查询销区产品库列表
export function listXqcpk(query) {
  return request({
    url: '/design/xqcpk/list',
    method: 'get',
    params: query
  })
}

// 查询销区产品库详细
export function getXqcpk(id) {
  return request({
    url: '/design/xqcpk/' + id,
    method: 'get'
  })
}

// 新增销区产品库
export function addXqcpk(data) {
  return request({
    url: '/design/xqcpk',
    method: 'post',
    data: data
  })
}

// 修改销区产品库
export function updateXqcpk(data) {
  return request({
    url: '/design/xqcpk',
    method: 'put',
    data: data
  })
}

// 删除销区产品库
export function delXqcpk(id) {
  return request({
    url: '/design/xqcpk/' + id,
    method: 'delete'
  })
}

// 导出销区产品库
export function exportXqcpk(query) {
  return request({
    url: '/design/xqcpk/export',
    method: 'get',
    params: query
  })
}